﻿using System;

class Program
{
    static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        Console.WriteLine("{0,15:}", n);
        Console.WriteLine("{0,15:X}", n);
        Console.WriteLine("{0,15:P}", n);
        Console.WriteLine("{0,15:E}", n);
    }
}